CVE-2026-49268
Apache Shiro: LDAP DN Injection in DefaultLdapRealm
Description
A remote attacker can inject LDAP special characters into the Distinguished Name (DN) construction in DefaultLdapRealm class. User-supplied username input is directly concatenated into the LDAP DN template without any escaping of RFC 2253 special characters. This allows an attacker to manipulate the DN structure used for LDAP bind authentication, potentially bypassing authentication or impersonating other users. This issue affects all Apache Shiro versions through 2.2.0, and 3.0.0-alpha-1 when using DefaultLdapRealm Upgrade to Apache Shiro 2.2.1 or 3.0.0-alpha-2 or later, which fixes the issue.
INFO
Published Date :
June 17, 2026, 1:07 p.m.
Last Modified :
June 17, 2026, 1:07 p.m.
Remotely Exploit :
Yes !
Source :
apache
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 4.0 | HIGH | f0158376-9dc2-43b6-827c-5f631a4d8d09 |
Solution
- Upgrade Apache Shiro to version 2.2.1 or later.
- Use version 3.0.0-alpha-2 or later.
- Ensure username input is properly escaped.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-49268 vulnerability anywhere in the article.